using System;
using System.Collections.Generic;
using System.Text;
using Framework.Library.Utilities;

namespace Framework.Library
{
    public class Definition
    {
        private const string CONFIG_FILENAME = "/Modules/CMS/CMS.config";

        public const string Portal_SiteName = "Portal.SiteName";
        public const string Partner_ZoneID = "Partner_ZoneID";
        public const string Portal_Home_Portal = "Portal.Home.Portal";
        public const string Portal_Home_Tab = "Portal.Home.Tab";
        public const string Portal_Search_Tab = "Portal.Search.Tab";
        public const string Portal_Rss_Tab = "Portal.Rss.Tab";
        public const string Portal_Content_Tab = "Portal.Content.Tab";
        public const string Portal_Zone_Tab = "Portal.Zone.Tab";
        public const string Portal_Zone_Active = "Portal.Zone.Active";

        public const string Portal_Event_Tab = "Portal.Event.Tab";
        public const string Portal_NewsInEvent_Tab = "Portal.NewsInEvent.Tab";
        public const string Portal_AlbumDetail_Tab = "Portal.AlbumDetail.Tab";
        public const string Portal_Album_Tab = "Portal.Album.Tab";
        public const string Portal_BonusDetail_Tab = "Portal.BonusDetail.Tab";
        public const string Portal_Bonus_Tab = "Portal.Bonus.Tab";

        public const string Portal_Cookie = "Framework.Portal.Cookie";
        public const string Portal_Contact_Mail = "Portal.Contact.Mail";
        public const string Portal_Mail_Server = "Portal.Mail.Server";
        public const string Portal_Mail_User = "Portal.Mail.User";
        public const string Portal_Mail_Password = "Portal.Mail.Password";
        public const string Portal_CopyRight = "Portal.CopyRight";
        public const string Portal_Hit_Counter = "Portal.Hit.Counter";
        public const string Portal_Style = "Portal.Style";
        public const string CMS_Viewed_Cookie_Name = "CMS.Viewed_Cookie_Name";
        public const string Portal_Active = "Portal.Active";
        public const string Portal_SendEmail = "Portal.SendEmail";
        public const string Portal_TuyenDung = "Portal.TuyenDung";
        public const string Portal_FAQ_Zone = "Portal.FAQ.Zone";
        public const string Portal_ContentZone_Tab = "Portal.ContentZone.Tab";

        public static double CacheTime
        {
            get { return ConvertUtility.ToDouble(AppEnv.GetAppSetting("CacheExpire_Zone", CONFIG_FILENAME)); }
        }

        public static string UploadPath
        {
            get { return AppEnv.GetAppSetting("UploadPath", CONFIG_FILENAME); }
        }
    }
}
